package cn.sylinx.hbatis.db.mapper.acm;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import cn.sylinx.hbatis.plugin.model.ModelFabric;

/**
 * 和属性一致策略
 * 
 * @author han
 *
 */
public class AttributeAcmStrategy implements AcmStrategy {

	@Override
	public Map<String, String> createAttrMapping(ModelFabric mf) {

		Map<String, String> attrMapping = new HashMap<String, String>();

		Set<String> attrs = mf.getFieldMap().keySet();
		for (String attr : attrs) {
			attrMapping.put(attr, attr);
		}

		return attrMapping;
	}

}
